﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EF.SqlLite
{
    class Program
    {
        static void Main(string[] args)
        {
            HibernatingRhinos.Profiler.Appender.EntityFramework.EntityFrameworkProfiler.Initialize();
            using (mainEntities entities = new mainEntities())
            {
                Test test = new Test()
                {
                    ID = new Random().Next(1000, 1000000),
                    Name = "99651"
                };
                entities.Test.Add(test);
                entities.SaveChanges();
                var lst = entities.Test.ToList();
            }
        }
    }
}
